
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    {$LOAD_STYLE.top|raw}
</head>
<body class="pear-container">
<div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
        <div class="layui-card">
            <form class="layui-form edit-form" method="post" action="">
            <div class="layui-tab layui-tab-brief" lay-filter="TabBrief">
                <ul class="layui-tab-title">
                    <li class="layui-this">公众号配置</li>
					<li>小程序配置</li>
					<li>企业微信</li>
					<li>阿里巴巴</li>
					<li>扫呗支付</li>
                </ul>
                <div class="layui-tab-content">
					<div class="layui-tab-item layui-show">
						<fieldset class="layui-elem-field layui-field-title">
						  <legend class="layui-font-16">基础参数</legend>
						  <div class="layui-field-box">
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            AppID
						        </label>
						        <div class="layui-input-block">
						            <input autocomplete="off" class="layui-input" name="gzh[option][app_id]" value="{$data['gzh']['option']['app_id']??''}" type="text"/>
						        </div>
						    </div>
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            AppSecret
						        </label>
						        <div class="layui-input-block">
						            <input autocomplete="off" class="layui-input" name="gzh[option][secret]" value="{$data['gzh']['option']['secret']??''}" type="text"/>
						        </div>
						    </div>
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            Token
						        </label>
						        <div class="layui-input-block">
						            <input autocomplete="off" class="layui-input" name="gzh[option][token]" value="{$data['gzh']['option']['token']??''}" type="text"/>
						        </div>
						    </div>
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            EncodingAESKey
						        </label>
						        <div class="layui-input-block">
						            <input autocomplete="off" class="layui-input" name="gzh[option][encodingaeskey]" value="{$data['gzh']['option']['encodingaeskey']??''}" type="text"/>
									<input autocomplete="off" class="layui-input" name="gzh[option][response_type]" value="{$data['gzh']['option']['response_type']??'array'}" type="hidden"/>
						        </div>
						    </div>
						  </div>
						</fieldset>
						<fieldset class="layui-elem-field layui-field-title">
						  <legend class="layui-font-16">模板消息</legend>
						  <div class="layui-field-box">
							<div class="layui-form-item">
								<label class="layui-form-label">
									通知状态：
								</label>
								<div class="layui-input-block">
									{:lay_switch('gzh[message][payment][on]',$data['gzh']['message']['payment']['on']??0,'开启|关闭')}
								</div>
								<div class="layui-form-mid layui-word-aux">关闭后将无法收到通知消息</div>
							</div>
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            通知人：
						        </label>
						        <div class="layui-input-block">
									<input autocomplete="off" class="layui-input" name="gzh[message][payment][openid]" value="{$data['gzh']['message']['payment']['openid']??''}" type="text"/>
									<div class="layui-form-mid layui-word-aux">请查询用户的Openid并填入，多个用 , 隔开</div>
						        </div>
						    </div>
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            客户付款通知
						        </label>
						        <div class="layui-input-block">
						            <input autocomplete="off" class="layui-input" name="gzh[message][payment][tplid]" value="{$data['gzh']['message']['payment']['tplid']??''}" type="text"/>
									<div class="layui-form-mid layui-word-aux">模板ID号为：OPENTM401585829&nbsp;&nbsp;&nbsp;&nbsp;隶属行业：IT科技 - 互联网|电子商务</div>
						        </div>
						    </div>
						  </div>
						</fieldset>
					</div>
					<div class="layui-tab-item">
						<fieldset class="layui-elem-field layui-field-title">
						  <legend class="layui-font-16">基础参数</legend>
						  <div class="layui-field-box">
							<div class="layui-form-item">
								<label class="layui-form-label">
									AppID
								</label>
								<div class="layui-input-block">
									<input autocomplete="off" class="layui-input" name="wxapp[option][app_id]" value="{$data['wxapp']['option']['app_id']??''}" type="text"/>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">
									AppSecret
								</label>
								<div class="layui-input-block">
									<input autocomplete="off" class="layui-input" name="wxapp[option][secret]" value="{$data['wxapp']['option']['secret']??''}" type="text"/>
								</div>
								<input autocomplete="off" class="layui-input" name="wxapp[option][response_type]" value="{$data['wxapp']['option']['response_type']??'array'}" type="hidden"/>
							</div>
						  </div>
						</fieldset>
					</div>
					
					<div class="layui-tab-item">
						<fieldset class="layui-elem-field layui-field-title">
						  <legend class="layui-font-16">企业微信参数</legend>
						  <div class="layui-field-box">
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            企业微信ID
						        </label>
						        <div class="layui-input-block">
						            <input autocomplete="off" class="layui-input" name="qiyewx[option][corp_id]" value="{$data['qiyewx']['option']['corp_id']??''}" type="text"/>
						        </div>
						    </div>
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            agent_id
						        </label>
						        <div class="layui-input-block">
						            <input autocomplete="off" class="layui-input" name="qiyewx[option][agent_id]" value="{$data['qiyewx']['option']['agent_id']??''}" type="text"/>
						        </div>
						    </div>
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            secret
						        </label>
						        <div class="layui-input-block">
						            <input autocomplete="off" class="layui-input" name="qiyewx[option][secret]" value="{$data['qiyewx']['option']['secret']??''}" type="text"/>
									<input autocomplete="off" class="layui-input" name="qiyewx[option][response_type]" value="{$data['qiyewx']['option']['response_type']??'array'}" type="hidden"/>
						        </div>
						    </div>
						  </div>
						</fieldset>
						<fieldset class="layui-elem-field layui-field-title">
						  <legend class="layui-font-16">付款通知</legend>
						  <div class="layui-field-box">
							<div class="layui-form-item">
								<label class="layui-form-label">
									通知状态：
								</label>
								<div class="layui-input-block">
									{:lay_switch('qiyewx[message][payment][on]',$data['qiyewx']['message']['payment']['on']??0,'开启|关闭')}
								</div>
								<div class="layui-form-mid layui-word-aux">关闭后将无法收到通知消息</div>
							</div>
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            成员ID
						        </label>
						        <div class="layui-input-block">
									<input autocomplete="off" class="layui-input" name="qiyewx[message][payment][touser]" value="{$data['qiyewx']['message']['payment']['touser']??''}" type="text"/>
									<div class="layui-form-mid layui-word-aux">成员ID号，多个用 | 隔开 （成员与部门可以二选一，重叠可能会发送重复消息）</div>
						        </div>
						    </div>
						    <div class="layui-form-item">
						        <label class="layui-form-label">
						            部门ID
						        </label>
						        <div class="layui-input-block">
						            <input autocomplete="off" class="layui-input" name="qiyewx[message][payment][toparty]" value="{$data['qiyewx']['message']['payment']['toparty']??''}" type="text"/>
									<div class="layui-form-mid layui-word-aux">部门ID号，多个用 | 隔开</div>
						        </div>
						    </div>
						  </div>
						</fieldset>
					</div>
					
					<div class="layui-tab-item">
						<fieldset class="layui-elem-field layui-field-title">
							<legend class="layui-font-16">商品管理配置</legend>
							<div class="layui-field-box">							
								<div class="layui-form-item">
									<label class="layui-form-label">
										APP_KEY
									</label>
									<div class="layui-input-block">
										<input autocomplete="off" class="layui-input" name="alibaba[product_app_key]" value="{$data['alibaba']['product_app_key']??''}" type="text"/>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">
										App_Secret
									</label>
									<div class="layui-input-block">
										<input autocomplete="off" class="layui-input" name="alibaba[product_app_secret]" value="{$data['alibaba']['product_app_secret']??''}" type="text"/>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">
										Token
									</label>
									<div class="layui-input-block">
										<input autocomplete="off" class="layui-input" name="alibaba[product_token]" value="{$data['alibaba']['product_token']??''}" type="text"/>
									</div>
								</div>
							</div>
						</fieldset>
						
						<fieldset class="layui-elem-field layui-field-title">
							<legend class="layui-font-16">订单管理配置</legend>
							<div class="layui-field-box">
								<div class="layui-form-item">
									<label class="layui-form-label">
										APP_KEY
									</label>
									<div class="layui-input-block">
										<input autocomplete="off" class="layui-input" name="alibaba[deal_app_key]" value="{$data['alibaba']['deal_app_key']??''}" type="text"/>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">
										App_Secret
									</label>
									<div class="layui-input-block">
										<input autocomplete="off" class="layui-input" name="alibaba[deal_app_secret]" value="{$data['alibaba']['deal_app_secret']??''}" type="text"/>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">
										Token
									</label>
									<div class="layui-input-block">
										<input autocomplete="off" class="layui-input" name="alibaba[deal_token]" value="{$data['alibaba']['deal_token']??''}" type="text"/>
									</div>
								</div>
							</div>
						</fieldset>
					</div>
					<div class="layui-tab-item">
						<div class="layui-form-item">
							<label class="layui-form-label">
								扫呗付款：
							</label>
							<div class="layui-input-block">
								{:lay_switch('lcsw[pay_switch]',$data['lcsw']['pay_switch']??0,'开启|关闭')}
							</div>
							<div class="layui-form-mid layui-word-aux">开启后在订单明细显示的付款二维码才有效</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								merchant_no
							</label>
							<div class="layui-input-block">
								<input autocomplete="off" class="layui-input" name="lcsw[merchant_no]" value="{$data['lcsw']['merchant_no']??''}" type="text"/>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								terminal_id
							</label>
							<div class="layui-input-block">
								<input autocomplete="off" class="layui-input" name="lcsw[terminal_id]" value="{$data['lcsw']['terminal_id']??''}" type="text"/>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								token
							</label>
							<div class="layui-input-block">
								<input autocomplete="off" class="layui-input" name="lcsw[token]" value="{$data['lcsw']['token']??''}" type="text"/>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								费率
							</label>
							<div class="layui-input-block">
								<input autocomplete="off" class="layui-input" name="lcsw[poundage]" value="{$data['lcsw']['poundage']??'0.0025'}" type="text"/>
								<div class="layui-form-mid layui-word-aux">请勿随意修改费率，将会影响订单成本</div>
							</div>
						</div>
					</div>
				</div>  
                <div class="layui-input-block" style="min-height: 80px;">
                    <button type="submit" class="pear-btn pear-btn-primary">保存</button>
                    <button type="reset" class="pear-btn">重置</button>
                </div>
        </form>    
        </div>
    </div>
</div>
<script>
	layui.use(['uploads','form','mycomm'], function() {
		let form=layui.form;
		let $ = layui.jquery;
		let mycomm = layui.mycomm;
	});
</script>
{$LOAD_STYLE.bottom|raw}
</body>
</html>
